import { logintype } from '@/store/interface/login';
export default ({
    namespaced: true,
    state: <logintype>{
        isLogin: true,
        user: {
            id: 1111,
            name: 'admin',
            userImg: 'http://pic1.zhimg.com/3e313e96a25b18b8236b241840a5d818_im.jpg'
        }
    },
    mutations: {
        CHANGE_LOGIN_TYPE(start: logintype, data: boolean) {
            start.isLogin = data
        },
    },
    actions: {
        CHANGE_LOGIN_TYPE_ACTION({ commit }: any, data: boolean) {
            commit('CHANGE_LOGIN_TYPE', data)
        },
    }
})